import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)
// 解决重复路由跳转   路由重定向
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
   return originalPush.call(this, location).catch(err => err)
}

// const _import = require('./import-' + process.env.NODE_ENV)
export default new Router({
  routes: [
    { path: '/', name: 'home', component: resolve =>require(['@/components/home/home'],resolve), meta: { title: '首页'} },
    
  ]
})